/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hcsc.datapower.CMDB.service;

import com.hcsc.datapower.CMDB.gui.AdminUserManagementWindow;
import com.hcsc.datapower.CMDB.gui.ConfigurationWindow;
import com.hcsc.datapower.CMDB.gui.MainApplicationWindow;
import org.springframework.beans.factory.annotation.Autowired;
/**
 *
 * @author I307211
 */
public class MainApplicationWindowController {
    
    private MainApplicationWindow mainapplicationwindow;
    private ConfigurationWindow configurationwindow;
    private AdminUserManagementWindow adminusermanagementwindow;
    
    public MainApplicationWindowController(){}
    
    public void initConfigWindow(){
        getConfigurationwindow().setVisible(true);
    }
    
    public void initSearchWindow(){
    
    }
    
    public void initUserAdminMenu(Boolean newuser){ 
        //getAdminusermanagementwindow().setMode(newuser);
        getAdminusermanagementwindow().setVisible(true);
    }

    public void initVendorMenu(){
    
    }
    
    public void initPortMenu(){
        getAdminusermanagementwindow().setVisible(true);
    }

    public MainApplicationWindow getMainapplicationwindow() {
        return mainapplicationwindow;
    }
    
    @Autowired
    public void setMainapplicationwindow(MainApplicationWindow mainapplicationwindow) {
        this.mainapplicationwindow = mainapplicationwindow;
    }

    public ConfigurationWindow getConfigurationwindow() {
        return configurationwindow;
    }
    @Autowired
    public void setConfigurationwindow(ConfigurationWindow configurationwindow) {
        this.configurationwindow = configurationwindow;
    } 

    public AdminUserManagementWindow getAdminusermanagementwindow() {
        return adminusermanagementwindow;
    }
    @Autowired
    public void setAdminusermanagementwindow(AdminUserManagementWindow adminusermanagementwindow) {
        this.adminusermanagementwindow = adminusermanagementwindow;
    }

}
